home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.mactech.com 2010
/
ftp.mactech.com.tar
/
ftp.mactech.com
/
online
/
source
/
c
/
compilers
/
C_Interp.sit.hqx
/
C_Interp
/
READ ME!
< prev
next >
Wrap
Text File
|
1993-05-14
|
1KB
|
23 lines
This source code implements a fairly complete C interpreter. The source code has been
compiled under Think C 5.0 as well as various flavors of ANSI C on several Unix boxes.
The code was originally part of the "Terminal 2.2" distribution that can be found on
various Mac archives. I pulled the guts of the interpreter out and isolated the various
pieces required to make it stand-alone. I'd love to credit the original author, but I have
no clue who he/she may be. As best I can tell, there are no restrictions on the source
code.
This Think C project includes the basic source code needed to incorporate the interpreter
into any program. A single procedure call found in "main.c" kicks the whole thing off.
Most of the built-in functions are found in Script.c and it's easy to add your own by
writing the routine and stuffing the appropriate info in the table at the end of that
source file. I've removed several of the built-ins that were specific to the Terminal
program.
Please use this source as you see fit. I treat a large chunk of it as a black box, since
I am not the author. Therefore, any problems you may run across should be considered
your own, since I have no clue how this beast works. See the "parser.docs" file for the
real scoop on how to use the interpreter.
Chuck Shotton
cshotton@oac.hsc.uth.tmc.edu